package io.ukoko.service.impl;

import io.ukoko.entity.Category;
import io.ukoko.mapper.CategoryMapper;
import io.ukoko.service.CategoryService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;

@Transactional
@Service
public class CategoryServiceImpl implements CategoryService
{

    @Resource
    private CategoryMapper categoryMapper;

    @Override
    public List<Category> getCategoryList()
    {
        return categoryMapper.getCategoryList();
    }
}
